class Service {

}

let moduleA = {
  providers: [Service],
  exports: [Service]
}

let moduleB = {
  providers: [Service],
  exports: [Service]
}

let AppModule = {
  imports: [moduleA, moduleB]
}